<%@ include file="/WEB-INF/jsp/tagJSONLibIncludes.jsp"%>
{
    title:'<fmt:message key="classDef.title.properties"/>',
   form:{actionUrl: '${auth}/classDef/${classDefType}/${selectedClassDefId}/property/assign',
         formName: 'classProperties',
         fields:[{name:'JSONPropertyIds', type:'arrow', 
                  value:{hasAllData:false,leftData:{title:'<fmt:message key="classDef.title.properties.leftColumn"/>',data:[
                  <c:forEach items="${restProperties}" var="property">
                    <c:if test="${property.isHidden==false}">
                  {id:'${property.id}', displayName:'${property.displayName}'},
                    </c:if>
                  </c:forEach>
                  ]},
                         rightData:{title:'<fmt:message key="classDef.title.properties.rightColumn"/>',data:[
                  <c:forEach items="${assignedProperties}" var="property">
                  <c:choose>
                    <c:when test="${fn:contains(properties, property)}">
                        {id:'${property.id}', displayName:'${property.displayName}'},
                    </c:when>
                    <c:when test="${fn:contains(systemProperties, property)}">
                        {id:'${property.id}', displayName:'${property.displayName}',disabled:'true'},
                    </c:when>
                    <c:otherwise>
                        {id:'${property.id}', displayName:'${property.displayName}', disabled:'true', assigned:'true'},
                    </c:otherwise>
                  </c:choose>
                  </c:forEach>]}
                  }}],
         buttons:[{name:"btnCancel", label:"<fmt:message key="btn.cancel"/>"},
                  {name:"btnAdd", label:"<fmt:message key="btn.assign"/>"}]
        },
}